<form [formGroup]="form" (submit)="onSubmit(form,$event)">
  <h2 mat-dialog-title>{{title}}</h2>
  <div mat-dialog-content>
    <mat-form-field class="example-full-width" color="primary">
      <input matInput placeholder="项目名称" formControlName="name">
    </mat-form-field>
    <mat-form-field class="example-full-width">
      <input matInput placeholder="项目描述" formControlName="desc">
    </mat-form-field>
    <app-image-list-select
    [useSvgIcon]="false"
    [cols]="6"
    [title]="'选择封面'"
    [items]="coverImages"
    formControlName="coverImg">
    </app-image-list-select>
  </div>
  <div mat-dialog-actions>
    <button type="button" mat-raised-button color="primary" type="submit" [disabled]="!form.valid">保存</button>
    <button type="button" mat-button mat-dialog-close (click)="onClose()">关闭</button>
  </div>
</form>
